#ifndef _SPLASH_SCENE_H_
#define _SPLASH_SCENE_H_

#include <iostream>
#include "cocos2d.h"

class SplashScene : public cocos2d::CCLayer
{
public:
    // Here's a difference. Method 'init' in cocos2d-x returns bool, instead of returning 'id' in cocos2d-iphone
    virtual bool init();
    
    // There's no 'id' in cpp, so we recommend returning the class instance pointer
    static cocos2d::CCScene* scene();
    
    // A selector callback
    void menuCloseCallback(CCObject* pSender);
    
    void onEnterTransitionDidFinish ();
    
	// Action go to menu when splash finish
    void gotoMenu(float dt);
    
    // Implement the "static node()" method manually
    CREATE_FUNC(SplashScene);
};

#endif
